API Endpoints
Response
- 200: Success
- 403: Forbidden
- 400: Bad Request
Auth
fusionpbx.js
FusionPBX
- Route:
/
- Method: POST
- Body:
data
- Related API:
- Return Format:
- Success: 200
res.json({ success: true, message: 'OK' })
- Failure: 200
{ success: false, message: 'error, please read on console.' }
gds.js
Get Calllog by API Key
- Route:
/calllog/:apikey
- Method: GET
- Params:
apikey
- Query:
from, to, timezone, work_start, work_end
- Body: None
- Description: Retrieves call logs using the provided API key.
- Return Format:
- Success: 200
{ hasMore: logs.hasMore, data: dataList, count: logs.result.length, countAll: dataList.length }
- Failure: 400
{ result: false, data: error.response.data }
Get Development Calllog by API Key
- Route:
/calllogdev/:apikey
- Method: GET
- Params:
apikey
- Query:
from, to, timezone, work_start, work_end
- Body:
idCallcenter
- Description: Retrieves development call logs using the provided API key.
- Return Format:
- Success: 200
{ hasMore: logs.hasMore, data: dataList, count: logs.result.length }
- Failure: 400
{ result: false, data: error.response.data }
Auth
- Route:
/auth
- Method: GET
- Query:
from, to, timezone, work_start, work_end
- Body:
idCallcenter
- Return Format:
- Success: 200
res.json({ result: true, data: req.body.idCallcenter })
- Failure: 400
{ result: false, data: error.response.data }
kazoo.js
Record
- Route:
/record
- Method: GET
- Query:
domain, from, to, flowid, sipCallid
- Related API:
- Return Format:
- Success: 200
res.json({ success: true, result })
- Failure: 400
{ success: false, error }
logger.js
Logger
- Route:
/
- Method: POST
- Body:
type, api, data
- Return Format: